package edu.miami.group.photologing;

import android.os.Bundle;
import android.app.Activity;
import android.content.ContentValues;
import android.view.Menu;
import android.view.Window;
import android.widget.EditText;
import android.widget.TextView;

public class ViewPhlog extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		ContentValues databaseObject;
		
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_view);
		
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);
		databaseObject = this.getIntent().getParcelableExtra("databaseObject");
		populateFields(databaseObject);
		
	}

	private void populateFields(ContentValues databaseObject) {
		TextView tv_title, tv_date, tv_location;
		EditText et_description;
		
		tv_title = (TextView) findViewById(R.id.view_title);
		tv_date = (TextView) findViewById(R.id.view_date);
		tv_location = (TextView) findViewById(R.id.view_location);
		et_description = (EditText) findViewById(R.id.view_description);
		
		//TODO: Populate fields with ContentValues
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.view, menu);
		return true;
	}

}
